%% Author: thung
%% Created: Apr 4, 2012
%% Description: TODO: Add description to try
-module(testtry).

%%
%% Include files
%%

%%
%% Exported Functions
%%
-export([test/1]).

%%
%% API Functions
%%

test(X)->
  try
    if
      X =:= 0 ->
      ok;
    X =/= 0 ->
  ErrorInfo = {error_module, X},
    throw(ErrorInfo)
    end
  catch
    throw: ErrInfo ->
      io:format("dump Error info ~p", [ErrInfo] )
  end.

%%
%% Local Functions
%%

